package com.maiikun.thread_pool.reject;

import com.maiikun.thread_pool.MyThreadPool;

/**
 * 直接丢弃任务
 */
public class DiscardPolicy implements RejectHandle{
    @Override
    public void reject(Runnable command, MyThreadPool threadPool) {
        threadPool.commandList.poll();
    }
}
